package com.wxlsoft.excel.enums;

import java.util.stream.Stream;

public enum HandlerConfigType {

	ESB_PLATFORM("esb"),
	SERVICE_PLATFORM("service"),
	NONE("none");

	private String name;

	private HandlerConfigType(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public static HandlerConfigType parse(String name) {
		return Stream.of(values())
				.filter(h -> h.getName().equals(name))
				.findFirst()
				.get();
	}
	
}
